FROM node:9-alpine
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY ["package.json", "npm-shrinkwrap.json*", "./"]
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install && mv node_modules ../
COPY . .
EXPOSE 4100
CMD node app.js